package cn.ijero.contactlist.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import cn.ijero.contactlist.database.table.Contact

@Dao
interface ContactDao {

    @Query("select * from contact")
    suspend fun findAll(): List<Contact>

    @Insert
    suspend fun insert(vararg contact: Contact)

}